--[[
Licenced under GNU GPL.
For more information, see LICENCE in the main folder.
--]]
require "./AI/USER_AI/easyai/objects/Enemy.lua"

--[[
Contains codes relevant with the owner.

@version	0.1 12 Aug 2011
@author		rodmp
--]]
-- Inherit enemy class.
Owner = Enemy:new()

function Owner:getCurrentHP()
    return GetV(V_HP, self.id)
end

function Owner:getCurrentSP()
    return GetV(V_SP, self.id)
end

function Owner:getHPPerc()
    return ((self:getCurrentHP() / GetV(V_MAXHP, self.id)) * 100)
end

function Owner:getSPPerc()
    return ((self:getCurrentSP() / GetV(V_MAXSP, self.id)) * 100)
end